package com.ruoyi.hqfinance.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum HqCollectPaiFeeByChannelEnum
{
    receiptVolume("receiptVolume", "签收量"),
    callVolume("callVolume", "电联量"),
    callRate("callRate", "电联率（百分比）"),
    smsVolume("smsVolume", "短信量"),
    smsRate("smsRate", "短信率（百分比）"),
    smsSignVolume("smsSignVolume", "签收量"), // 注意此处与receiptVolume重复，可能需要修正
    callTaggedVolume("callTaggedVolume", "电联标打标量"),
    callTaggedPerformedVolume("callTaggedPerformedVolume", "电联标履约量"),
    smsTaggedNotificationRate("smsTaggedNotificationRate", "电联标履约率（百分比）"), // 修正名称以匹配字段名
    smsTaggedRate("smsTaggedRate", "短信标履行率"),
    smsTaggedNum("smsTaggedNum", "短信标打标量"),
    smsInformNum("smsInformNum", "短信标通知量");

    private final String code;
    private final String info;

    HqCollectPaiFeeByChannelEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (HqCollectPaiFeeByChannelEnum value : HqCollectPaiFeeByChannelEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
